export default {
    namespaced:true,
    state:{
        name:window.localStorage.getItem('cityname')||'北京',
        id:window.localStorage.getItem('cityid')||999,
    },
    mutations: {
        switchcity(state,obj){
            state.name=obj.name;
            state.id=obj.id;
        },
    },
}